
$(document).ready(function() {

	 	//$( "#ngct" ).datepicker({dateFormat:"dd/mm/yy"});

});

function socai(url){
	ng1= $('select[name="dateExpire1Day"] option:selected').text();
	th1= $('select[name="dateExpire1Month"] option:selected').val();
	ng2= $('select[name="dateExpire2Day"] option:selected').val();
	th2= $('select[name="dateExpire2Month"] option:selected').val();
	nam= $('select[name="dateExpire2Year"] option:selected').val();
	matk = $('select[name="matk"] option:selected').val();
	ngay1 = nam+"-"+th1+"-"+ng1;
	ngay2 = nam+"-"+th2+"-"+ng2;
	
	url = url + "?ngay1="+ngay1+"&&ngay2="+ngay2+"&&nam="+nam+"&&matk="+matk;
	var win = window.open(url, '_blank');
	win.focus();
	return;

}    

function sothctg(url){
	ng1= $('select[name="dateExpire1Day"] option:selected').text();
	th1= $('select[name="dateExpire1Month"] option:selected').val();
	ng2= $('select[name="dateExpire2Day"] option:selected').val();
	th2= $('select[name="dateExpire2Month"] option:selected').val();
	nam= $('select[name="dateExpire2Year"] option:selected').val();
	matk = $('select[name="matk"] option:selected').val();
	ngay1 = nam+"-"+th1+"-"+ng1;
	ngay2 = nam+"-"+th2+"-"+ng2;
	url = url + "&&ngay1="+ngay1+"&&ngay2="+ngay2+"&&nam="+nam+"&&matk="+matk;
	var win = window.open(url, '_blank');
	//location.href = url;
	return;

}    
